package com.example.chatroom.service;


import com.example.chatroom.controller.param.UserParam;
import com.example.chatroom.service.dto.FriendListDTO;
import com.example.chatroom.service.dto.UserDTO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface IUserService {
    /**
     * 登陆用户
     * @param userParam
     * @return
     */
    UserDTO login(UserParam userParam);

    /**
     * 注册用户
     * @param userParam
     * @return
     */
    UserDTO register(UserParam userParam);

    /**
     * 注销用户
     * @return
     */
    void exit(HttpServletRequest request);

    /**
     * 获取用户信息
     * @param request
     * @return
     */
    UserDTO getUserInfo(HttpServletRequest request);


}
